<?php
/**
 * SensitiveWord
 *  @OA\Schema(
 *       schema="SensitiveWord",
 *       description="SensitiveWord-敏感词",
 *       @OA\Property(
 *            property="id",
 *            type="number"
 *       ),
 *      @OA\Property(
 *            property="word",
 *            type="string",
 *            description="词汇"
 *       ),
 *       @OA\Property(
 *            property="creator_id",
 *            type="number",
 *            description="创建人ID"
 *      ),
 *      @OA\Property(
 *            property="creator",
 *            type="string",
 *            description="创建人"
 *       ),
 *     @OA\Property(
 *            property="status",
 *            type="number",
 *            description="1 启用 2 禁用",
 *       ),
 *     @OA\Property(
 *            property="created_at",
 *            type="string",
 *            description="创建时间"
 *       ),
 *     @OA\Property(
 *            property="updated_at",
 *            type="string",
 *            description="更新时间",
 *     ),
 *     @OA\Property(
 *            property="deleted_at",
 *            type="string",
 *            description="删除状态，null 未删除 timestamp 已删除",
 *     ),
 * )
 *
 * @OA\Get(path="/sensitive/word",
 *   tags={"sensitiveWord"},
 *   summary="敏感词列表",
 *   operationId="getSensitiveWords",
 *   security={{"Authorization-Bearer":{}}},
 *   @OA\Parameter(ref="#/components/parameters/pageSize"),
 *   @OA\Parameter(ref="#/components/parameters/current"),
 *   @OA\Parameter(ref="#/components/parameters/keyword"),
 *   @OA\Response(response="200", description="Success",
 *       @OA\JsonContent(ref="#/components/schemas/QueryResponse")
 *   )
 * )
 *
 * @OA\Post(path="/sensitive/word",
 *   tags={"sensitiveWord"},
 *   summary="创建敏感词",
 *   operationId="createSensitiveWord",
 *   security={{"Authorization-Bearer":{}}},
 *   @OA\RequestBody(
 *     @OA\MediaType(
 *       mediaType="application/json",
 *         @OA\Schema(ref="#/components/schemas/SensitiveWord")
 *       )
 *     ),
 *   @OA\Response(response="200", description="Success",
 *       @OA\JsonContent(ref="#/components/schemas/HandleResponse")
 *   )
 * )
 *
 *
 * @OA\Put(path="/sensitive/word/{id}",
 *   tags={"sensitiveWord"},
 *   summary="更新敏感词",
 *   operationId="updateSensitiveWord",
 *   security={{"Authorization-Bearer":{}}},
 *   @OA\Parameter(ref="#/components/parameters/id"),
 *   @OA\RequestBody(
 *     @OA\MediaType(
 *       mediaType="application/json",
 *         @OA\Schema(ref="#/components/schemas/SensitiveWord")
 *       )
 *     ),
 *   @OA\Response(response="200", description="Success",
 *       @OA\JsonContent(ref="#/components/schemas/HandleResponse")
 *   )
 * )
 *
 *
 * @OA\Delete (path="/sensitive/word/{id}",
 *   tags={"sensitiveWord"},
 *   summary="删除敏感词",
 *   operationId="deleteSensitiveWord",
 *   security={{"Authorization-Bearer":{}}},
 *   @OA\Parameter(ref="#/components/parameters/id"),
 *   @OA\Response(response="200", description="Success",
 *       @OA\JsonContent(ref="#/components/schemas/HandleResponse")
 *   )
 * )
 */